﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="LeftMenu" Codebehind="LeftMenu.ascx.cs" %>
<table id="leftmenu" border="0" cellpadding="0" cellspacing="0">
    <% if (HttpContext.Current.User.IsInRole("Administrator") || HttpContext.Current.User.IsInRole("Operator"))
       { %>
    <tr>
        <td>
            <div class="description">
                Reservation menu
            </div>
        </td>
    </tr>
    <tr id="linkreservation">
        <td>
            <a class="menu" href="/Pages/Reservations/Reservation.aspx"><span>Reservations</span>
            </a>
        </td>
    </tr>
    <tr id="linkreservationlist">
        <td>
            <a class="menu" href="/Pages/Reservations/ReservationList.aspx"><span>Search bookings</span>
            </a>
        </td>
    </tr>
    <tr id="linkcalendar">
        <td>
            <a class="menu" href="/Pages/Reservations/Calendar.aspx"><span>Calendar</span> </a>
        </td>
    </tr>
    <tr id="linkservicecalendar">
        <td>
            <a class="menu" href="/Pages/Reservations/ServiceCalendar.aspx"><span>Service Calendar</span>
            </a>
        </td>
    </tr>
    <tr style="height: 5px">
    </tr>
    <tr>
        <td>
            <div class="description">
                Operation management menu
            </div>
        </td>
    </tr>
    <tr id="linkprovider">
        <td>
            <a class="menu" href="/Pages/Operators/ProviderList.aspx"><span>Providers</span>
            </a>
        </td>
    </tr>
    <tr id="linkservice">
        <td>
            <a class="menu" href="/Pages/Operators/ServiceList.aspx"><span>Services</span> </a>
        </td>
    </tr>
    <tr id="linkroute">
        <td>
            <a class="menu" href="/Pages/Operators/RouteList.aspx"><span>Routes</span> </a>
        </td>
    </tr>
    <tr style="height: 5px">
    </tr>
    <% if (HttpContext.Current.User.IsInRole("Administrator"))
       { %>
    <tr>
        <td>
            <div class="description">
                General menu
            </div>
        </td>
    </tr>
    <tr id="linkagent">
        <td>
            <a class="menu" href="/Pages/Agents/AgentList.aspx"><span>Agents</span> </a>
        </td>
    </tr>
    <%--<tr id="linkemployee">
        <td>
            <a class="menu" href="/Pages/Agents/EmployeeList.aspx"><span>Operators</span> </a>
        </td>
    </tr>--%>
    <tr id="linkuser">
        <td>
            <a class="menu" href="/Pages/Users/ManageUsers.aspx"><span>Users</span> </a>
        </td>
    </tr>
    <tr id="linkboat">
        <td>
            <a class="menu" href="/Pages/Boats/BoatList.aspx"><span>Boats</span> </a>
        </td>
    </tr>
    <% } %>
    <tr style="height: 5px">
    </tr>
    <tr>
        <td>
            <div class="description">
                Report menu
            </div>
        </td>
    </tr>
    <tr id="linkoperatorreport">
        <td>
            <a class="menu" href="/Pages/Reports/OperatorReport.aspx"><span>Operator's report</span>
            </a>
        </td>
    </tr>
    <% } %>
    <% if (HttpContext.Current.User.IsInRole("Administrator") || HttpContext.Current.User.IsInRole("Accountant"))
       { %>
    <tr id="linkaccountantreport">
        <td>
            <a class="menu" href="/Pages/Reports/AccountantReport.aspx"><span>Accountant's report</span>
            </a>
        </td>
    </tr>
    <% } %>
</table>
